<div align="center">
	<form action="index.php?module=xe&action=list" method="POST">
		<table>
			<tr>
				<td>STT</td>
				<td>Ten Xe</td>
				<td>Hinh anh</td>
				<td>Kiem duyet</td>
				<td>Hang xe</td>
				<td>Loai xe</td>
				<td>Username</td>
				<td>Trang thai</td>
				<td>Gia</td>
				<td>Del</td>
				<td>Edit</td>
			</tr>
			<?php
				if($data == false){
					echo "<tr>";
						echo "<td colspan='9'>Du lieu trong</td>";
					echo "</tr>";
				}else{
					$stt = 0;
					foreach ($data as $row){
						$stt++;
						echo "<tr>";
							echo "<td>".$stt."</td>";
							echo "<td>".$row["tenxe"]."</td>";
							echo "<td><img src='$row[hinhanh]' width='70px' height='70px' /></td>";
							if($row["kiemduyet"] == "Y"){
								echo "<td><font color='green'>Yes</font></td>";
							}else{
								echo "<td><font color='red'>No</font></td>";
							}
							echo "<td>".$row["tenhang"]."</td>";
							echo "<td>".$row["tenloai"]."</td>";
							echo "<td>".$row["username"]."</td>";
							echo "<td>".$row["tentt"]."</td>";
							echo "<td>".$row["gia"]."</td>";
							echo "<td><a href='index.php?module=xe&action=del&id=$row[xe_id]'>Del</a></td>";
							echo "<td><a href='index.php?module=xe&action=edit&id=$row[xe_id]'>Edit</a></td>";
						echo "</tr>";
					}
				}
			?>
			<tr>
				<td colspan="11"><a href="index.php?module=xe&action=add">Add</a></td>
			</tr>
			<!--<tr>
				<?php
					/*if(isset($_SESSION["se_id"])){
						echo "<td>".$_SESSION["se_id"]."</td>";
					}else{
						echo "<td>Ko co</td>";
					}*/
				?>
			</tr>-->
		<table>
	</form>
</div>